@echo off

rem there is some unknown difference between the behavior
rem of .bat script and interactive shell
rem Example for valid key:
rem HKCU\Console\^%SystemRoot^%_system32_wsl.exe
set /p key="Enter key : "
echo %key%

rem set CodePage to 437 (0x1b5)
reg add %key% /v CodePage /t REG_DWORD /d 0x1b5

rem set FontSize to 36
reg add %key% /v FontSize /t REG_DWORD /d 0x240000

rem set FaceName and other values accordingly
reg add %key% /v FaceName /t REG_SZ /d "Cascadia Code ExtraLight"
reg add %key% /v FontFamily /t REG_DWORD /d 0x36
reg add %key% /v FontWeight /t REG_DWORD /d 0xc8

rem set CursorType to "bar"
reg add %key% /v CursorType /t REG_DWORD /d 0x4

rem set ScreenBufferSize to 9999
reg add %key% /v ScreenBufferSize /t REG_DWORD /d 0x270f0060

rem show result
reg query %key%

exit /b
